/*
 *  Author: Neil Wicker
 *  Date: 29/04/2014
 *  Description: Gear tile subclass - the player collects gear from this tile
 *  
 */

package com.forbiddendesert.tiles;

import com.example.forbiddendesert.R;
import com.forbiddendesert.actions.GiveGear;
import com.forbiddendesert.characters.Character;

import android.content.Context;
import android.util.Log;

public class GearTile extends Tile
{
	
	public GearTile(Context context) 
	{
		super(context);
		
		// Write debug log to the console
		Log.i("DEBUG GameThread", "Creating Gear Tile"); //set debug log
		
		// Update the source rectangle
		updateSourceRectangle();
		
		// Load the bitmap for this tile
		mBitmap = loadBitmap(context.getResources(),R.drawable.tile);
		mExcavatedBitmap = loadBitmap(context.getResources(),R.drawable.geartile);
		mTileAction = null;		
	}

	@Override
	public void excavateTile(Character character) 
	{
		mTileAction = new GiveGear(character);
		mBitmap = mExcavatedBitmap;
	}

	@Override
	public void interactWithTile(Character character) 
	{
		// TODO Auto-generated method stub
		
	}
}
